<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <div data-th-replace="layout/head"></div>
</head>
<body>
    <!--增改收货地址 弹出结构  开始-->
    <form id="addUserAddress">
        <input type="hidden" name="id" th:value="${address['id']}"/>
        <div class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label unFw text-right">
                    <small class="fs12 c-danger">*</small>
                    收件人姓名
                </label>
                <div class="col-sm-9">
                    <input class="form-control" type="text" name="receiver" placeholder="收件人姓名" th:value="${address['receiver']}">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label unFw text-right">
                    <small class="fs12 c-danger">*</small>
                    联系方式
                </label>
                <div class="col-sm-9">
                    <input class="form-control" type="text" name="mobile" placeholder="联系方式" th:value="${address['mobile']}">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label unFw text-right">
                    <small class="fs12 c-danger">*</small>
                    收件人地址
                </label>
                <div class="col-sm-9">
                    <section class="row">
                        <div class="col-sm-4">
                            <select class="form-control" style="display: inline-block;width: 90%" id="areaType_0" name="provinceId">
                                <option th:selected="${address['provinceId']}"  value="0">--请选择省--</option>
                                <th:block th:if="!${#lists.isEmpty(provinceList)}" th:each="province : ${provinceList}">
                                    <option th:selected="${address['provinceId']} == ${province['id']}" th:value="${province['id']}" th:text="${province['areaName']}"></option>
                                </th:block>
                            </select>
                            <span class="c-999">省</span>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" style="display: inline-block;width: 90%" id="areaType_1" name="cityId">
                                <option th:selected="${address['cityId']}" value="0">--请选择市--</option>
                                <th:block th:if="!${#lists.isEmpty(cityList)}" th:each="city : ${cityList}">
                                    <option th:selected="${address['cityId']} == ${city['id']}" th:value="${city['id']}" th:text="${city['areaName']}"></option>
                                </th:block>
                            </select>
                            <span class="c-999">市</span>
                        </div>
                        <div class="col-sm-4">
                            <select class="form-control" style="display: inline-block;width: 80%" id="areaType_2" name="townId">
                                <option th:selected="${address['townId']}" value="0">--请选择县--</option>
                                <th:block th:if="!${#lists.isEmpty(townList)}" th:each="town : ${townList}">
                                    <option th:selected="${address['townId']} == ${town['id']}" th:value="${town['id']}" th:text="${town['areaName']}"></option>
                                </th:block>
                            </select>
                            <span class="c-999">区/县</span>
                        </div>
                    </section>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label unFw text-right">
                    <small class="fs12 c-danger">*</small>
                    明细地址
                </label>
                <div class="col-sm-9">
                    <input class="form-control" type="text" name="address" placeholder="请输入街道或楼层单元" th:value="${address['address']}">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label unFw text-right">
                    <small class="fs12 c-danger">*</small>
                    邮政编码
                </label>
                <div class="col-sm-9">
                    <input class="form-control" type="text" name="postCode" placeholder="请输入收件人所在地区邮政编码" th:value="${address['postCode']}">
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label unFw text-right">&nbsp;</label>
                <div class="col-sm-9">
                    <label class="checkbox-inline">
                        <input type="checkbox" name="status" value="1" id="inlineCheckbox1" th:checked="${address['status']}==1">将此地址设置为常用收货地址
                    </label>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <hr>
        </div>
    </form>
    <!--增改收货地址 弹出结构  结束-->
    <!--全局 js-->
    <script th:src="@{{path}/common/libs/jquery_1.11.1/jquery.min.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/common/libs/bootstrap/bootstrap.min.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/common/cookie/cookie-utils.js?v={v}(path=${staticPath},v=${v})}"></script>
    <!--图片懒加载 js-->
    <script th:src="@{{path}/common/libs/jquery_lazyload_1.9.3/jquery.lazyload.min.js?v={v}(path=${staticPath},v=${v})}"></script>

    <script th:src="@{{path}/common/libs/jquery.serializeJSON/jquery.serializejson.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/libs/plugins/layer/layer.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/libs/plugins/chosen/chosen.jquery.js?v={v}(path=${staticPath},v=${v})}"></script>

    <script th:src="@{{path}/front/web/business/exam/common/exam-head-subject.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/business/common/web-getpage-data.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/business/order/shopCart/common-shop-cart.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/business/user/common/common-login-utils.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/common/op-advert.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:src="@{{path}/front/web/common/head-utils.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:inline="javascript" type="text/javascript">
        var staticPath =[[ ${staticPath}]];
        var siteTile =[[${infoMap['company']}]];
        var SHARE_KEY =[[${SHARE_KEY}]];
        var serviceUrl =[[${serviceMap['context']}]];
        var appDowMapUrl =[[${appDowMap['url']}]];
        var h5MobileMapUrl =[[${h5MobileMap['url']}]];
        var smallAppMapUrl =[[${smallAppMap['url']}]];
        var baseloaction = [[${#httpServletRequest.getContextPath()}]];
        if(baseloaction=="/"){
            baseloaction="";
        }
    </script>
    <script th:src="@{{path}/front/web/business/order/goods/init-address.js?v{v}(path=${staticPath},v=${v})}"></script>
</body>
</html>